home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSDocumentStyle.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSDocumentStyle.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSDocumentStyle_h__
  6. #define __gen_nsIDOMNSDocumentStyle_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIDOMDocumentStyle_h__
  14. #include "nsIDOMDocumentStyle.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIDOMNSDocumentStyle */
  23. #define NS_IDOMNSDOCUMENTSTYLE_IID_STR "4ecdf254-a21e-47b0-8d72-55da8208299f"
  24.  
  25. #define NS_IDOMNSDOCUMENTSTYLE_IID \
  26.   {0x4ecdf254, 0xa21e, 0x47b0, \
  27.     { 0x8d, 0x72, 0x55, 0xda, 0x82, 0x08, 0x29, 0x9f }}
  28.  
  29. /**
  30.  * The nsIDOMNSDocumentStyle interface is an extension to the
  31.  * nsIDOMDocumentStyle interface.  This interface exposes more ways to interact
  32.  * with style sheets in the Document Object Model.  This interface is currently
  33.  * very much experimental.
  34.  */
  35. class NS_NO_VTABLE nsIDOMNSDocumentStyle : public nsIDOMDocumentStyle {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSDOCUMENTSTYLE_IID)
  39.  
  40.   /**
  41.    * This attribute indicates the preferredStylesheetSet as set by the
  42.    * author. It is determined from the order of stylesheet declarations and the
  43.    * Default-Style HTTP headers. See [[HTML4]]. If there is no preferred
  44.    * stylesheet set, this attribute returns the empty string. The case of this
  45.    * attribute must exactly match the case given by the author where the
  46.    * preferred stylesheet is specified or implied.
  47.    */
  48.   /* readonly attribute DOMString preferredStylesheetSet; */
  49.   NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_NSIDOMNSDOCUMENTSTYLE \
  55.   NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSIDOMNSDOCUMENTSTYLE(_to) \
  59.   NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) { return _to GetPreferredStylesheetSet(aPreferredStylesheetSet); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_NSIDOMNSDOCUMENTSTYLE(_to) \
  63.   NS_IMETHOD GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreferredStylesheetSet(aPreferredStylesheetSet); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMNSDocumentStyle : public nsIDOMNSDocumentStyle
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMNSDOCUMENTSTYLE
  74.  
  75.   nsDOMNSDocumentStyle();
  76.  
  77. private:
  78.   ~nsDOMNSDocumentStyle();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMNSDocumentStyle, nsIDOMNSDocumentStyle)
  86.  
  87. nsDOMNSDocumentStyle::nsDOMNSDocumentStyle()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMNSDocumentStyle::~nsDOMNSDocumentStyle()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* readonly attribute DOMString preferredStylesheetSet; */
  98. NS_IMETHODIMP nsDOMNSDocumentStyle::GetPreferredStylesheetSet(nsAString & aPreferredStylesheetSet)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIDOMNSDocumentStyle_h__ */
  108.